<?php 
/* SVN FILE: $Id$ */
/* Rank Test cases generated on: 2008-06-10 21:06:19 : 1213100059*/
App::import('Model', 'Rank');

class TestRank extends Rank {
	var $cacheSources = false;
	var $useDbConfig  = 'test_suite';
}

class RankTestCase extends CakeTestCase {
	var $Rank = null;
	var $fixtures = array('app.rank', 'app.mml', 'app.mml');

	function start() {
		parent::start();
		$this->Rank = new TestRank();
	}

	function testRankInstance() {
		$this->assertTrue(is_a($this->Rank, 'Rank'));
	}

	function testRankFind() {
		$results = $this->Rank->recursive = -1;
		$results = $this->Rank->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Rank' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit ame',
			'ch1'  => 1,
			'ch2'  => 1,
			'ch3'  => 1
			));
		$this->assertEqual($results, $expected);
	}
}
?>